package com.thoughtworks.collection;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class InverseReduce {

    private Random random = new Random();

    public InverseReduce() {}

    public InverseReduce(Random random) {
        this.random = random;
    }

    public List<Integer> divideToSmaller(int number) {
        int n=number/2;
        List<Integer> list=new ArrayList<>();
        for (int i=0;i<n;i++){
            number=number-2;
            list.add(number);
            System.out.println(i);
        }
        return list;
    }
}
